
 /**
 * UpdateAction.java.java.
 * User: BrianChen Date: 2012-6-26 下午04:29:59
 *
 * Copyright (c) 2009 Hewlett-Packard Development Company, L.P.
 * All rights reserved.
 */
package com.collapsar.snail.user.action;

import java.io.File;

import com.collapsar.core.action.BaseStrutsAction;
import com.collapsar.core.security.model.UserInfo;
import com.collapsar.core.security.service.IUserManager;

/**
 * <pre>
 * REVISIONS: 
 * Version 	Date 		Author 			Description
 * ------------------------------------------------------------------- 
 * 1.0 		2012-6-26 	BrianChen 	1. Created this class. 
 * </pre>
 * 
 * @author BrianChen
 * @date 2012-6-26 下午04:29:59
 * @version 1.0
 * @see
 * 
 */
@SuppressWarnings("serial")
public class UpdateAction extends BaseStrutsAction{
	private IUserManager userManager = null;
	private UserInfo userInfo = null;
	private File photoFile = null;
	
	
	@Override
	public String execute() throws Exception {
		logger.info("###upload photoFile.name = "+photoFile.getName());
		boolean success = this.userManager.modifyUserInfo(this.userInfo, this.photoFile);
		if(success){
			return "toQueryListAction";
		}else{
			return null;
		}
	}
	



	public IUserManager getUserManager() {
		return userManager;
	}
	public void setUserManager(IUserManager userManager) {
		this.userManager = userManager;
	}
	public UserInfo getUserInfo() {
		return userInfo;
	}
	public void setUserInfo(UserInfo userInfo) {
		this.userInfo = userInfo;
	}
	public File getPhotoFile() {
		return photoFile;
	}
	public void setPhotoFile(File photoFile) {
		this.photoFile = photoFile;
	}
	
	
	

}

